//
//  LIUNavigationController.m
//  EasyNotes
//
//  Created by 劉裕 on 24/5/2016.
//  Copyright © 2016年 劉裕. All rights reserved.
//

#import "LIUNavigationController.h"
#import "AppDelegate.h"
#import "LIUMainViewController.h"

@interface LIUNavigationController ()

@end

@implementation LIUNavigationController

+ (void)initialize {
    [[UINavigationBar appearance] setTintColor:LIUColor(217, 98, 84, 1.0)];
}

- (void)viewDidLoad {
    [super viewDidLoad];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
}

- (UIViewController *)popViewControllerAnimated:(BOOL)animated {
    if (self.childViewControllers.count == 1) {
        [kNotificationCenter postNotificationName:ToggleDrawer object:nil];
    }
    return [super popViewControllerAnimated:animated];
}

@end
